package com.zzq.controller;


import com.zzq.domain.search.ShootAddressApplySearchParamet;
import com.zzq.domain.search.ShootAddressSearchParamet;
import com.zzq.result.SmileResult;
import com.zzq.service.ShootAdressAdminService;
import com.zzq.service.ShootAdressApplyAdminService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/admin/shoot/address/apply")
@RestController
@Api(value = "拍摄地址申请管理",tags = {"拍摄地址申请管理"})
public class ShootAddressApplyAdminController {

    @Autowired
    private ShootAdressApplyAdminService shootAdressApplyAdminService;




    @PostMapping("/list")
    @ApiOperation("获取拍摄地申请集合")
    public SmileResult applylist(@RequestBody ShootAddressApplySearchParamet searchParamet){
        return   shootAdressApplyAdminService.getShootAdressApplylist(searchParamet);
    }

    @GetMapping("/del")
    @ApiOperation("删除拍摄地申请")
    public SmileResult applylist(@RequestParam("shootAddressApplyId") Long   shootAddressApplyId){
        return   shootAdressApplyAdminService.delShootAdressApplyById(shootAddressApplyId);
    }
    @GetMapping("/audit")
    @ApiOperation("拍摄地申请审核")
    public SmileResult applylist(@RequestParam("shootAddressApplyId") Long   shootAddressId, @RequestParam("audit") Boolean   isby){
        return   shootAdressApplyAdminService.setAudit(shootAddressId,isby);
    }



}
